﻿using System;
using System.Linq.Expressions;
using BaseDomainNamespace.Viewpoints;

namespace MainDomainNamespace.Entity1s
{
    /// <summary>
    /// <see cref="Entity1"/> の<see cref="Entity1.Name">名前</see>を分析します。
    /// </summary>
    [Serializable]
    public sealed class Entity1NameViewpoint : Viewpoint<Entity1, string>
    {
        /// <inheritdoc/>
        protected override Expression<Func<Entity1, string>> CreateExpression()
        {
            return entity => entity.Name;
        }
    }
}
